/*
 * XML Type:  StatementImage
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.StatementImage
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML StatementImage(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class StatementImageImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.StatementImage
{
    
    public StatementImageImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName IMAGEURL$0 = 
        new javax.xml.namespace.QName("", "IMAGEURL");
    private static final javax.xml.namespace.QName PREFETCHURL$2 = 
        new javax.xml.namespace.QName("", "PREFETCHURL");
    private static final javax.xml.namespace.QName DTEXPIRE$4 = 
        new javax.xml.namespace.QName("", "DTEXPIRE");
    
    
    /**
     * Gets the "IMAGEURL" element
     */
    public java.lang.String getIMAGEURL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IMAGEURL$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "IMAGEURL" element
     */
    public net.ofx.types.x2003.x04.UrlType xgetIMAGEURL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UrlType target = null;
            target = (net.ofx.types.x2003.x04.UrlType)get_store().find_element_user(IMAGEURL$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "IMAGEURL" element
     */
    public void setIMAGEURL(java.lang.String imageurl)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IMAGEURL$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(IMAGEURL$0);
            }
            target.setStringValue(imageurl);
        }
    }
    
    /**
     * Sets (as xml) the "IMAGEURL" element
     */
    public void xsetIMAGEURL(net.ofx.types.x2003.x04.UrlType imageurl)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UrlType target = null;
            target = (net.ofx.types.x2003.x04.UrlType)get_store().find_element_user(IMAGEURL$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.UrlType)get_store().add_element_user(IMAGEURL$0);
            }
            target.set(imageurl);
        }
    }
    
    /**
     * Gets array of all "PREFETCHURL" elements
     */
    public java.lang.String[] getPREFETCHURLArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(PREFETCHURL$2, targetList);
            java.lang.String[] result = new java.lang.String[targetList.size()];
            for (int i = 0, len = targetList.size() ; i < len ; i++)
                result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
            return result;
        }
    }
    
    /**
     * Gets ith "PREFETCHURL" element
     */
    public java.lang.String getPREFETCHURLArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PREFETCHURL$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) array of all "PREFETCHURL" elements
     */
    public net.ofx.types.x2003.x04.UrlType[] xgetPREFETCHURLArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(PREFETCHURL$2, targetList);
            net.ofx.types.x2003.x04.UrlType[] result = new net.ofx.types.x2003.x04.UrlType[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets (as xml) ith "PREFETCHURL" element
     */
    public net.ofx.types.x2003.x04.UrlType xgetPREFETCHURLArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UrlType target = null;
            target = (net.ofx.types.x2003.x04.UrlType)get_store().find_element_user(PREFETCHURL$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return (net.ofx.types.x2003.x04.UrlType)target;
        }
    }
    
    /**
     * Returns number of "PREFETCHURL" element
     */
    public int sizeOfPREFETCHURLArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PREFETCHURL$2);
        }
    }
    
    /**
     * Sets array of all "PREFETCHURL" element
     */
    public void setPREFETCHURLArray(java.lang.String[] prefetchurlArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(prefetchurlArray, PREFETCHURL$2);
        }
    }
    
    /**
     * Sets ith "PREFETCHURL" element
     */
    public void setPREFETCHURLArray(int i, java.lang.String prefetchurl)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PREFETCHURL$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.setStringValue(prefetchurl);
        }
    }
    
    /**
     * Sets (as xml) array of all "PREFETCHURL" element
     */
    public void xsetPREFETCHURLArray(net.ofx.types.x2003.x04.UrlType[]prefetchurlArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(prefetchurlArray, PREFETCHURL$2);
        }
    }
    
    /**
     * Sets (as xml) ith "PREFETCHURL" element
     */
    public void xsetPREFETCHURLArray(int i, net.ofx.types.x2003.x04.UrlType prefetchurl)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UrlType target = null;
            target = (net.ofx.types.x2003.x04.UrlType)get_store().find_element_user(PREFETCHURL$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(prefetchurl);
        }
    }
    
    /**
     * Inserts the value as the ith "PREFETCHURL" element
     */
    public void insertPREFETCHURL(int i, java.lang.String prefetchurl)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = 
                (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(PREFETCHURL$2, i);
            target.setStringValue(prefetchurl);
        }
    }
    
    /**
     * Appends the value as the last "PREFETCHURL" element
     */
    public void addPREFETCHURL(java.lang.String prefetchurl)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PREFETCHURL$2);
            target.setStringValue(prefetchurl);
        }
    }
    
    /**
     * Removes the ith "PREFETCHURL" element
     */
    public void removePREFETCHURL(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PREFETCHURL$2, i);
        }
    }
    
    /**
     * Gets the "DTEXPIRE" element
     */
    public java.lang.String getDTEXPIRE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTEXPIRE$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTEXPIRE" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTEXPIRE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTEXPIRE$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "DTEXPIRE" element
     */
    public boolean isSetDTEXPIRE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DTEXPIRE$4) != 0;
        }
    }
    
    /**
     * Sets the "DTEXPIRE" element
     */
    public void setDTEXPIRE(java.lang.String dtexpire)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTEXPIRE$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTEXPIRE$4);
            }
            target.setStringValue(dtexpire);
        }
    }
    
    /**
     * Sets (as xml) the "DTEXPIRE" element
     */
    public void xsetDTEXPIRE(net.ofx.types.x2003.x04.DateTimeType dtexpire)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTEXPIRE$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTEXPIRE$4);
            }
            target.set(dtexpire);
        }
    }
    
    /**
     * Unsets the "DTEXPIRE" element
     */
    public void unsetDTEXPIRE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DTEXPIRE$4, 0);
        }
    }
}
